#include "ndame.h"
Go to the source code of this file.
Functions | |
int | main () |
main |
Definition in file main.c.
|
main This function sets standart default values and calls box, state and menu. By calling state(d1,0) default state will be loaded.
Definition at line 20 of file main.c. References automatic, box(), data::cfilename, data::fcalctime, data::iauthor, data::iblength, data::isave, data::isolutions, data::istep, data::m1, menu(), and state(). 00021 { 00022 int imenu; 00023 struct data d1; 00024 //default values 00025 d1.m1=automatic; 00026 d1.iblength=8; 00027 d1.isolutions=0; 00028 d1.istep=0; 00029 d1.isave=0; 00030 d1.iauthor=0; 00031 d1.fcalctime=0; 00032 sprintf(d1.cfilename,"%s","C:\\ndame.txt"); 00033 00034 box(); 00035 state(&d1,0); 00036 do //menue is looped 00037 { 00038 imenu=menu(&d1); 00039 }while(imenu); 00040 00041 clrscr(); 00042 return 0; 00043 }
|